<%--
  Created by IntelliJ IDEA.
  User: set_free
  Date: 012
  Time: 15:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib  uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>

<html>
<head>
    <title>Title</title>
    <script>

    </script>
</head>
<body>
${pageContext.request.scheme}${'://'}${pageContext.request.serverName}${':'}${pageContext.request.serverPort}${pageContext.request.contextPath}
el:${errorInfox}=============
list:${list[1]}#####
map:${map.one}!!!!!
map2:${map["two"]}!!!!!


param:${param.method}&&&&&&
paramValues:${paramValues.hobbies[0]}@@@@@

======================================================
msg=<c:out  value="${msg}"></c:out>
<c:set  var="msg"  value="Hello  World!"  scope="page"></c:set>
<!-- 此时msg的值应该是上面设置的“Hello World!” -->
设置新值以后：msg=<c:out  value="${msg}"></c:out><br/>
<!-- 把 msg变量从page范围内移除-->
<c:remove  var="msg"  scope="page" />
<!-- 此时msg的值应该显示null -->
移除变量msg以后：msg=<c:out  value="${msg}"  default="null"></c:out>



异常信息页，异常内容：
${requestScope.errorInfo}
contextpath:${pageContext.request.contextPath}
<c:if test="${not empty requestScope.errorInfo}">
    <script>
        if(confirm("是否重新登录")){
            //js url 重定向
            window.location.href="${pageContext.request.contextPath}/login.jsp";
        }
    </script>
</c:if>
产品列表：
<c:forEach  items="${requestScope.productList}"  var="product"
            varStatus="status">
    <!-- 如果是偶数行，为该行换背景颜色 -->
    <table style="border :1px solid red">
    <th><td>名</td><td>价格</td><td>产区</td></th>
        <tbody>
    <tr <c:if test="${status.index % 2 == 1 }">
        style="background-color:rgb(219,241,212);"</c:if>>
        <td>${product.name }</td>
        <td>${product.area }</td>
        <td>${product.price }</td>
    </tr>
        </tbody>
    </table>
</c:forEach>

<%
    out.write("aaa");
%>
<a href="${pageContext.request.contextPath}/login.jsp">重新登录</a>
</body>
</html>
